#ifndef __MUTEXLCOK_H_
#define __MUTEXLOCK_H_

#include "Noncopyable.hpp"
#include <pthread.h>

namespace pc{

class MutexLock
:Noncopyable
{
public:
    MutexLock();
    ~MutexLock();
    void lock();
    void unlock();
    pthread_mutex_t * getMutexLockPtr();

private:
    pthread_mutex_t _mutex;
};

}//end of namespace pc

#endif

